<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>核算项目--部门</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/public.css">
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/sorttable.js"></script>
		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/public.js"></script>

	</head>
	<body>
		<div id="info_all">
			<div id="info_top">
				核算项目--部门
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
			<s:form action="searchDepartment.action" theme="simple" id="delrow" cssStyle="margin-top:0px;">
				<div id="btn">
					<input type="button" value="新增" onClick="addAction('addInputDepartment')"
						onFocus="this.blur()" onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="修改" onClick="updateAction('updateInputDepartment')"
						onFocus="this.blur()" onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="删除" onClick="deleteAction('deleteDepartment')"
						onFocus="this.blur()" onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
				</div>
				<div id="info_main">
					<!-- 查询-->

					<div id="select">
						<hr>
						<table>
							<tr>
								<td>
									代码&nbsp;
								</td>
								<td>
									<s:textfield name="verifyprojectDepartment.departmentCode" size="12" maxlength="10"></s:textfield>
									&nbsp;&nbsp;&nbsp;
								</td>
								<td>
									名称&nbsp;
								</td>
								<td>
									<s:textfield name="verifyprojectDepartment.departmentName" size="15" maxlength="20"></s:textfield>
									&nbsp;&nbsp;&nbsp;
								</td>
							</tr>
						</table>
					</div>
					<div class="sele">
						<input type="submit" value="查询" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize" />

						<input type="reset" value="重置" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize" />
						<hr>
					</div>
					<!-- 信息显示-->
					<div id="info_info1">
						<table id="info_table" width="830px" cellspacing=1px
							cellpadding=1px class="sortable">
							<thead>
								<tr>
									<th>
										<input type="checkbox" onClick="selectAll()" />
									</th>
									<th width="80px">
										代码
									</th>
									<th width="130px">
										名称
									</th>
									<th width="80px">
										部门主管
									</th>
									<th width="100px">
										部门电话
									</th>
									<th width="80px">
										传真
									</th>
									<th width="200px">
										核算科目代码
									</th>
									<th width="240px">
										备注
									</th>
								</tr>
							</thead>
							<tbody>
								<s:if test="!departments.isEmpty()">
									<s:iterator value="departments">
										<tr>
											<td>
												<s:checkbox name="rowlist" fieldValue="%{department.departmentId}"
													theme="simple" />
											</td>
											<td>
												<s:property value="department.departmentCode" />
												&nbsp;
											</td>
											<td>
												<s:property value="department.departmentName" />
												&nbsp;
											</td>
											<td>
												<s:property value="manager.candiateName" />
												&nbsp;
											</td>
											<td>
												<s:property value="department.departmentPhone" />
												&nbsp;
											</td>
											<td>
												<s:property value="department.departmentFax"/>
												&nbsp;
											</td>
											<td>
												<s:property value="accountbook.accountbookName"/>
												&nbsp;
											</td>
											<td>
												<s:property value="department.memo"/>
												&nbsp;
											</td>
										</tr>
									</s:iterator>
								</s:if>
							</tbody>
							<tfoot>
							</tfoot>
						</table>
						<script type="text/javascript">
							//("表格名称","奇数行背,"偶数行背,"点击后背);
							 mouseclick("info_table","#ffffff","#ffffff","#e6f0fd");
							 //("表格名称","奇数行背,"偶数行背);
							 //setcolor("t","#ffffff","#ffffff");
						</script>
					</div>
				</div>
			</s:form>
		</div>
	</body>
</html>
